package com.example.jyjava.bean;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

public class Order {
    private Integer id;
    private Integer userId;
    private Integer shopId;
    private String name;
    private String phone;
    private String address;
    private String time;
    private String orderType;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date creatTime;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date updateTime;
    private boolean deleteType;
    private Integer sellerId;
    private Shop shop;
    private User user;
    private Lity lity;
    private User uuser;

    public Order() {
    }

    public Order(Integer id, Integer userId, Integer shopId, String name, String phone, String address, String time, String orderType, Date creatTime, Date updateTime, boolean deleteType,Integer sellerId, Shop shop, User user, Lity lity, User uuser) {
        this.id = id;
        this.userId = userId;
        this.shopId = shopId;
        this.name = name;
        this.phone = phone;
        this.address = address;
        this.time = time;
        this.orderType = orderType;
        this.creatTime = creatTime;
        this.updateTime = updateTime;
        this.deleteType = deleteType;
        this.sellerId = sellerId;
        this.shop = shop;
        this.user = user;
        this.lity = lity;
        this.uuser = uuser;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public Integer getShopId() {
        return shopId;
    }

    public void setShopId(Integer shopId) {
        this.shopId = shopId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getTime() {
        return time;
    }

    public void setTime(String time) {
        this.time = time;
    }

    public String getOrderType() {
        return orderType;
    }

    public void setOrderType(String orderType) {
        this.orderType = orderType;
    }

    public Date getCreatTime() {
        return creatTime;
    }

    public void setCreatTime(Date creatTime) {
        this.creatTime = creatTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public boolean isDeleteType() {
        return deleteType;
    }

    public void setDeleteType(boolean deleteType) {
        this.deleteType = deleteType;
    }

    public Shop getShop() {
        return shop;
    }

    public void setShop(Shop shop) {
        this.shop = shop;
    }

    public User getUser() {
        return user;
    }

    public void setUser(User user) {
        this.user = user;
    }

    public Lity getLity() {
        return lity;
    }

    public void setLity(Lity lity) {
        this.lity = lity;
    }

    public Integer getSellerId() {
        return sellerId;
    }

    public void setSellerId(Integer sellerId) {
        this.sellerId = sellerId;
    }

    public User getUuser() {
        return uuser;
    }

    public void setUuser(User uuser) {
        this.uuser = uuser;
    }

    @Override
    public String toString() {
        return "Order{" +
                "id=" + id +
                ", userId=" + userId +
                ", shopId=" + shopId +
                ", name='" + name + '\'' +
                ", phone='" + phone + '\'' +
                ", address='" + address + '\'' +
                ", time='" + time + '\'' +
                ", orderType='" + orderType + '\'' +
                ", creatTime=" + creatTime +
                ", updateTime=" + updateTime +
                ", deleteType=" + deleteType +
                ", sellerId=" + sellerId +
                ", shop=" + shop +
                ", user=" + user +
                ", lity=" + lity +
                ", uuser=" + uuser +
                '}';
    }
}
